package bean;

public class Book {

//    书名:<input type="text" name= "bookName"/><br/>
//    作者:<input type="text" name="author"/><br/>
//    价格:<input type="text" name="price"/><br/>
//    库存:<input type="text" name="stock"/><br/>
//    销量:<input type="text" name="sales"/><br/><hr/>
//    省: <input type="text" name="address.province"/>
//    市: <input type="text" name="address.city"/>
//    街道:<input type="text" name="address.street"/>

    private String name;
    private String author;
    private Double price;
    private Integer stock;
    private String sales;
    private Address address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getSales() {
        return sales;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", sales='" + sales + '\'' +
                ", address=" + address +
                '}';
    }
}
